diff options
Diffstat (limited to 'app/[lng]/evcp/(evcp)/rfq-last/[id]/vendor/page.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/rfq-last/[id]/vendor/page.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/rfq-last/[id]/vendor/page.tsx b/app/[lng]/evcp/(evcp)/rfq-last/[id]/vendor/page.tsx index 012296ca..296e46fe 100644 --- a/app/[lng]/evcp/(evcp)/rfq-last/[id]/vendor/page.tsx +++ b/app/[lng]/evcp/(evcp)/rfq-last/[id]/vendor/page.tsx @@ -36,7 +36,7 @@ export default async function VendorPage(props: VendorPageProps) { const { data: vendorResponses, success: responsesSuccess } = await getRfqVendorResponses(rfqId); - if (!rfqSuccess || !rfqData) { + if (!rfqSuccess || !rfqData ||!responsesSuccess||!vendorResponses) { return ( <div className="p-4"> <Alert variant="destructive"> @@ -50,7 +50,7 @@ export default async function VendorPage(props: VendorPageProps) { // 응답 상태별 집계 const statusSummary = { - total: vendorResponses?.length || 0, + total: rfqData?.details.length || 0, invited: vendorResponses?.filter(v => v.status === "초대됨").length || 0, drafting: vendorResponses?.filter(v => v.status === "작성중").length || 0, submitted: vendorResponses?.filter(v => v.status === "제출완료").length || 0, |
